package com.cxm.weilai.result;

/**
 * @program: weilai-cloud
 * @description: 响应信息
 * @author: ChenMan
 * @create: 2019-03-27 14:47
 */
public enum ResponseInfo {
  SYSTEM_ABNORMALITY("001","系统异常！"),
  SERVER_ABNORMALITY("002","服务器异常！"),
  MALICIOUSCOMMIT("003", "提交过于频繁"),
  UNAUTHORIZED_EXPIRED("401", "没有权限访问"),

  SUCCESS("200","操作成功！"),
  LOGIN_SUCCESS("200-001","登陆成功！"),
  SAVE_SUCCESS("200-002","保存成功！"),
  EDIT_SUCCESS("200-003","修改成功！"),
  REMOVE_SUCCESS("200-004","删除成功！"),
  SEARCH_SUCCESS("200-005","查询成功！"),
  SEARCH_EMPTY("200-006","查询为空！"),
  LOGINOUT_SUCCESS("200-007","退出成功！"),

  ERROR("400","操作失败！"),
  LOGIN_ERROR("400-001","登陆失败！"),
  SAVE_ERROR("400-002","保存失败！"),
  EDIT_ERROR("400-003","修改失败！"),
  REMOVE_ERROR("400-004","删除失败！"),
  SEARCH_ERROR("400-005","查询失败！"),
  LOGINOUT_ERROR("400-007","退出失败！"),
  LOGIN_CODE_ERROR("400-008","登录验证码有误！"),
  LOGIN_OUTTIME("201","登陆超时！"),


  // ---------member  start  300------------  //
  USERORPWD_ERROR("300-001","用户名或密码错误！"),
  ACCOUNT_LOCKOUT("300-002","登陆次数超过5次，账户被锁定！"),
  ACCOUNT_ALREADY_EXISTS_TOLOGIN("300-003","账号已存在请登录！"),
  REGIST_ERROR("300-004","注册失败，请重新注册"),
  ACCOUNT_ALREADY_EXISTS("300-005","账号已存在,请勿重复添加！"),
  ACCOUNT_NOT_EXISTS("300-006","未查询到该账户信息"),
  ACCOUNT_DEL_FAIL("300-007","账户删除失败"),
  ACCOUNT_UPDATE_FAIL("300-008","账户信息修改失败");

  // ---------member  end------------  //

  ResponseInfo (String code, String msg){
    this.code = code;
    this.msg = msg;
  }

  public String code;
  public String msg;

  public String getCode() {
    return code;
  }

  public String getMsg() {
    return msg;
  }
}
